import type { MemberForm, MemberVo } from './types'
import { request } from '@/utils/request'


/**
 * 修改用户信息
 */
const baseUrl = '/api/user/info'

export const updateMemberApi = (data : MemberForm) => {
	return request({
		url: baseUrl,
		method: 'PUT',
		data: data
	})
}


/* 获取用户信息 */

export const getMemberApi = (id : string | number) => {
	return request<MemberVo>({
		url: baseUrl + `/${id}`,
		method: 'GET',
	})
}
